package cn.edu.scau.cmi.maintain.controller;

import java.util.Iterator;
import java.util.Set;

import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import cn.edu.scau.cmi.ema.domain.Adultertype;
import cn.edu.scau.cmi.front.controller.FrontCmiEmaController;

/**
 * 
 */

@Controller()

public class MaintainAdultertypeController extends FrontCmiEmaController {
	
	@RequestMapping(value = "/mergyRedundancyAdultertype", method = RequestMethod.GET)
	@ResponseBody
	@Transactional
	@SuppressWarnings("unused")
	public void mergyRedundancyAdultertype () throws Exception {
		Set<Adultertype> pictures = adultertypeDAO.findAllAdultertypes();
		Iterator<Adultertype> picturesIterator = pictures.iterator();
		while (picturesIterator.hasNext()) {
			Adultertype picture = picturesIterator.next();
			System.out.println(picture.getName() + "已经修改！！！");
		}
	}
}